import { requestClient } from '#/api/request';
/**
 * 添加用户信息
 */
export async function userAddApi(data: any) {
  return requestClient.post('/user/backend/register', data);
}
// 编辑用户
export async function userEditApi(data: any) {
  return requestClient.post('/user/modifyBaseInfo', data);
}
// 用户删除
export async function userDeleteApi(data: { id: string }) {
  return requestClient.post(`/user/delete`, data);
}
// 添加公司
export async function addCompanyApi(data) {
  return requestClient.post('/company/add', data);
}
// 获取公司列表
export async function getCompanyListApi(data: {
  offset: number;
  size: number;
}) {
  return requestClient.get('/company/list', data);
}

// 获取公司下拉select
export async function getCompanySelectApi() {
  return requestClient.get('/company/listSimple');
}
